package com.ww.microrpc.netty.common;

import java.util.UUID;
import java.util.concurrent.atomic.AtomicInteger;

public abstract class SequenceIdGenerator {
    private static final AtomicInteger id = new AtomicInteger(10);

    public static int nextId() {
        return id.incrementAndGet();
    }

    public static String getUUID() {
        return UUID.randomUUID().toString();
    }

}


